﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EClinic.Ontology
{
    public partial class OSubNodeEdit : UserControl
    {
        public OSubNodeEdit()
        {
            InitializeComponent();
            radGroupBox1.Hide();
          
        }

        private void radDropDownList1_SelectedIndexChanged(object sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
        {
            if (radDropDownList1.SelectedIndex==1)
            {
                radGroupBox1.Hide();
                radGroupBox2.Show();
            }
            if (radDropDownList1.SelectedIndex == 0)
            {
                radGroupBox2.Hide();
                radGroupBox1.Show();
            }
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            if (radTextBox6.Text != "")
            {
                radListControl1.Items.Add(new Telerik.WinControls.UI.RadListDataItem(radTextBox6.Text));
                radTextBox6.Text = "";
            }
        }
    }
}
